package com.bw.entity;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class HouseAdd {


    @NotBlank(message = "名称不为空")
    private String name;
    @NotBlank(message = "地址不为空")
    private String address;
    @NotBlank(message = "区不为空")
    private String qu;
    @NotNull(message = "省份不为空")
    private Integer provinceId;
    @NotNull(message = "城市不为空")
    private Integer cityId;
    @NotNull(message = "图片不为空")
    private MultipartFile picFile;

    private String picUrl;
}

